import React, { useCallback } from 'react'
import img from '../../image/404.png';

function NotFound( {history} ) {
    return (
        <div className="center"
                style={{ height: '100%', background: '#ececec', overflow: 'hidden', textAlign: 'center' }}>
                <img src={img}
                    alt="404"/>
                <div>
                    <button onClick={ () => {
                        history.push('/login')
                    }}>返回登录</button>
                </div>
            </div>
    )
}
export default NotFound
